package com.ssyan.decorator;

/**
 * @author ssyan
 * @Description TODO
 * @create 2021/8/29 1:16
 * @Version 1.0
 */
public abstract class Drink {

    public String desc;
    private float price = 0.0f;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    //计算费用的抽象方法
    public abstract float cost();
}
